package com.xinnet.mms.company.dao.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.xinnet.mms.allot.dao.impl.BaseDaoImpl;
import com.xinnet.mms.company.dao.CompanyDao;
import com.xinnet.mms.entity.Company;
@Repository("companyDao")
public class CompanyDaoImpl extends BaseDaoImpl<Object, Object> implements CompanyDao{
	
	public List<Company> getAllCompanyList(){
		return super.getSqlSession().selectList("company.getAllCompanyList");
	}	

	public Company getCompanyById(@Param(value="id") String id) {
		return super.getSqlSession().selectOne("company.getCompanyById", id);
	}
}
